import Vue from 'vue'
import Vuex from 'vuex'

import getters from './Getters'
import mutations from './Mutations'
import actions from './Actions'

Vue.use(Vuex)
const state={
  goodsList:[],
  goods:{
    status:-1,// 数据状态
    page:1,// 页码
    pageSize:5,// 每页条数
    nameLike:'',// 商品名模糊搜索
    brandId:[],// 品牌ID
    categoryId:[],// 分类ID
    shopId:[],// 店铺ID
  },
  total:0,
  titleList:[],
  yonghuList:[],
  yonghu:{
    status:-1,
    page:1,
    pageSize:20,
  }
}

export default new Vuex.Store({
  state,
  getters,
  mutations,
  actions,
})
